package main

import (
	grpc2 "google.golang.org/grpc"
	"zk507/common/grpc"
	"zk507/common/inits"
	"zk507/common/viper"
	"zk507/service/internal"
)

func main() {
	viper.InitViper()
	inits.InitNaCos()
	//inits.InitConSul()
	inits.InitMysql()
	inits.InitRedis()
	//createtable.CreateTable()
	grpc.RegisterGrpc(func(server *grpc2.Server) {
		internal.Register(server)
	})
}
